<html xmlns:th="http://www.thymeleaf.org">
    <th:block th:fragment="pages">
    
<!--翻页 start-->
<form name="selectPageForm" action="" method="get">
<!-- {if $pager.styleid eq 0 } -->
<div id="pager">
   <span> <a th:href="${pager.page_first}"></a> <a th:href="${pager.page_prev}"></a> <a th:href="${pager.page_next}"></a> <a th:href="${pager.page_last}"></a> </span>
    <!--{foreach from=$pager.search key=key item=item}-->
      {if $key eq 'keywords'}
          <input type="hidden" name="" value="" />
        {else}
          <input type="hidden" name="" value="" />
      {/if}
    <!--{/foreach}-->
    <select name="page" id="page" onchange="selectPage(this)">
    {html_options options=$pager.array selected=$pager.page}
    </select>
</div>
<!--{else}-->

<!--翻页 start-->
 <div id="pager" class="pagebar">
  <span class="f_l " style="margin-right:10px;"><b></b> </span>
  <!-- {if $pager.page_first} --><a th:href="${pager.page_first}"> ...</a><!-- {/if} -->
  <!-- {if $pager.page_prev} --><a class="prev" th:href="${pager.page_prev}"></a><!-- {/if} -->
  <!-- {if $pager.page_count neq 1} -->
    <!--{foreach from=$pager.page_number key=key item=item}-->
      <!-- {if $pager.page eq $key} -->
      <span class="page_now"></span>
      <!-- {else} -->
      <a th:href="${item}">[]</a>
      <!-- {/if} -->
    <!--{/foreach}-->
  <!-- {/if} -->

  <!-- {if $pager.page_next} --><a class="next" th:href="${pager.page_next}"></a><!-- {/if} -->
  <!-- {if $pager.page_last} --><a class="last" th:href="${pager.page_last}">...</a><!-- {/if} -->
  <!-- {if $pager.page_kbd} -->
    <!--{foreach from=$pager.search key=key item=item}-->
      {if $key eq 'keywords'}
          <input type="hidden" name="" value="" />
        {else}
          <input type="hidden" name="" value="" />
      {/if}
    <!--{/foreach}-->
    <kbd style="float:left; margin-left:8px; position:relative; bottom:3px;"><input type="text" name="page" onkeydown="if(event.keyCode==13)selectPage(this)" size="3" class="B_blue" /></kbd>
    <!-- {/if} -->
</div>
<!--翻页 END-->

<!-- {/if} -->
</form>
<script type="Text/Javascript" language="JavaScript">
<!--
{literal}
function selectPage(sel)
{
  sel.form.submit();
}
{/literal}
//-->
</script>

    </th:block>
</html>